//
//  CheckThirdDetailCell.m
//  ICrEAM
//
//  Created by mac on 16/11/11.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "CheckThirdDetailCell.h"
@interface CheckThirdDetailCell()
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *imageLeftConstraint;
@property (weak, nonatomic) IBOutlet UIView *bottomView;
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UILabel *statusTitleL;

@end
@implementation CheckThirdDetailCell
+(instancetype)createCheckThirdDetailCell{
    return [[[NSBundle mainBundle]loadNibNamed:@"CheckThirdDetailCell" owner:nil options:nil]lastObject];
}
- (IBAction)imageClick:(id)sender {
    if (self.imageBlock) {
        self.imageBlock();
    }
}

- (void)awakeFromNib {
    [super awakeFromNib];
        self.selectionStyle=UITableViewCellSelectionStyleNone;
    if (![ICrEAMTool isVW]) {
        self.titleLabel.textColor=KSKTextTitleColor;
        self.statusTitleL.textColor=KSKTextTitleColor;
    }
    if ([ICrEAMTool isVW]) {
        self.bottomView.hidden=YES;
    }
    // Initialization code
}
-(void)setIsEdit:(BOOL)isEdit{
    _isEdit=isEdit;
    self.imageBtn.hidden=!isEdit;
    if (!isEdit) {
        self.imageLeftConstraint.constant=30;
    }else{
        self.imageLeftConstraint.constant=150;
    }
    
    self.imageCollectioView.isEdit=isEdit;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
